marks_start_element(): initialize "value" to get rid of a compiler warning
authorMichael Natterer <mitch@gimp.org>
Thu, 27 Aug 2009 19:11:28 +0000 (21:11 +0200)
committerMichael Natterer <mitch@gimp.org>
Thu, 27 Aug 2009 19:14:21 +0000 (21:14 +0200)
gtk/gtkscale.c

index 261d69800e3050ae73aa8f42a843af63b99afe06..2f4cc98fb6acde8e1a6af82a12ddf1df0b80dcfc 100644 (file)
@@ -1423,7 +1423,7 @@ marks_start_element (GMarkupParseContext *context,
    ;
   else if (strcmp (element_name, "mark") == 0)
     {
-      gdouble value;
+      gdouble value = 0;
       gboolean has_value = FALSE;
       GtkPositionType position = GTK_POS_BOTTOM;
       const gchar *msg_context = NULL;